/**
 * 作者：陈文斌 on 2019/1/21.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/ClientManager/client_info_model.dart';
import 'package:crm/model/VisitorRecord/visitor_type_model.dart';
import 'package:crm/model/VisitorRecord/visitor_image_model.dart';

part 'visitor_record_model.g.dart';

@JsonSerializable()
class VisitorRecordModel extends Object with _$VisitorRecordModelSerializerMixin {
  String customerId;
  ClientInfoModel customer;
  String id;
  List<VisitorTypeModel> types;
  String visitorAddress;
  String visitorCompanyId;
  String visitorCreateEmployeeId;
  String visitorCreateTimeUtc;
  String visitorDetails;
  String visitorEmployeeId;
  List<VisitorImageModel> visitorImages;
  String visitorModifyEmployeeId;
  String visitorModifyTimeUtc;
  int visitorTime;
  String visitorType;

  VisitorRecordModel(
    this.customerId,
    this.customer,
    this.id,
    this.types,
    this.visitorAddress,
    this.visitorCompanyId,
    this.visitorCreateEmployeeId,
    this.visitorCreateTimeUtc,
    this.visitorDetails,
    this.visitorEmployeeId,
    this.visitorImages,
    this.visitorModifyEmployeeId,
    this.visitorModifyTimeUtc,
    this.visitorTime,
    this.visitorType,
  );

  @override
  factory VisitorRecordModel.fromJson(Map<String, dynamic> json) => _$VisitorRecordModelFromJson(json);
}
